package com.copa.module.goods.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author copa
 * @createDate 2021-01-07
 * @function   t_goods_product表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_goods_product")
@ApiModel(value="GoodsProduct对象", description="")
public class GoodsProductEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "产品编号")
    @TableField("product_sn")
    private String productSn;

    @ApiModelProperty(value = "商品id")
    @TableField("goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "规格")
    @TableField("specifications")
    private String specifications;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "数量")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "sku图片")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String PRODUCT_SN = "product_sn";

    public static final String GOODS_ID = "goods_id";

    public static final String SPECIFICATIONS = "specifications";

    public static final String PRICE = "price";

    public static final String NUMBER = "number";

    public static final String IS_DELETE = "is_delete";


}
